package com.zhang.apipassenger.remote;

import com.zhang.internalcommon.dto.VerificationCodeDTO;
import com.zhang.internalcommon.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("service-passenger-user")
public interface ServicePassengerUserClient {
	@PostMapping("/user")
	ResponseResult loginOrRegister(@RequestBody VerificationCodeDTO verificationCodeDTO);

	@GetMapping("/user/{phone}")
	ResponseResult getUser(@PathVariable("phone") String phone);
}
